<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- 第一步：引入Vue -->
    <script src="https://unpkg.com/vue@3.4.0"></script>
  </head>
  <body>
    <div id="app">
      <h1>{{message}}</h1>
    </div>
    <!-- 第二步：让Vue可以控制页面 -->
    <script>
      const { createApp } = Vue;
      const App = {
        setup() {
          return {
            <!-- 第三步：操控页面数据 -->
            message: "Hello World",
          }
        }
      }
      createApp(App).mount("#app");
    </script>
  </body>
</html>
